import 'package:flutter/material.dart';
import 'package:flutterdemo/common/calc.dart';

class None extends StatelessWidget {
  const None({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Calc.init(context);
    return LayoutBuilder(
      builder: (ctx, covariant) {
        return Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Container(
              height: Calc.width(300),
              width: Calc.width(300),
              child: Image.asset("static/images/none.png"),
            ),
            Text("暂无数据"),
            SizedBox(
              height: covariant.maxHeight/3,
            )
          ],
        );
      },
    );
  }
}
